package com.specialized.coupon.domain;

import java.math.BigDecimal;
import java.util.Date;

import cn.hutool.core.date.DateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.specialized.common.core.annotation.Excel;
import com.specialized.common.core.web.domain.BaseEntity;

/**
 * 优惠卷用户关系对象 coupon
 *
 * @author djh
 * @date 2024-07-19
 */
public class Coupon extends BaseEntity {
private static final long serialVersionUID=1L;

    /** id */
    private Long userCouponId;

    /** 代金卷id */
            @Excel(name = "代金卷id")
    private Long couponId;

    /** 用户id */
            @Excel(name = "用户id")
    private Long userId;

    /** 标题 */
            @Excel(name = "标题")
    private String couponTitle;

    /** 金额 */
            @Excel(name = "金额")
    private BigDecimal couponAmount;

    /** 优惠卷状态0:带使用1：已使用 */
            @Excel(name = "优惠卷状态0:带使用1：已使用")
    private Long couponStatus;

    /** 开始时间 */
            @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
            @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /** 结束时间 */
            @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
            @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /** $column.columnComment */
            @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String isDelete;

    public void setUserCouponId(Long userCouponId)
            {
            this.userCouponId = userCouponId;
            }

    public Long getUserCouponId()
            {
            return userCouponId;
            }
    public void setCouponId(Long couponId)
            {
            this.couponId = couponId;
            }

    public Long getCouponId()
            {
            return couponId;
            }
    public void setUserId(Long userId)
            {
            this.userId = userId;
            }

    public Long getUserId()
            {
            return userId;
            }
    public void setCouponTitle(String couponTitle)
            {
            this.couponTitle = couponTitle;
            }

    public String getCouponTitle()
            {
            return couponTitle;
            }
    public void setCouponAmount(BigDecimal couponAmount)
            {
            this.couponAmount = couponAmount;
            }

    public BigDecimal getCouponAmount()
            {
            return couponAmount;
            }
    public void setCouponStatus(Long couponStatus)
            {
            this.couponStatus = couponStatus;
            }

    public Long getCouponStatus()
            {
            return couponStatus;
            }
    public void setStartTime(Date startTime)
            {
            this.startTime = startTime;
            }

    public Date getStartTime()
            {
            return startTime;
            }
    public void setEndTime(Date endTime)
            {
            this.endTime = endTime;
            }

    public Date getEndTime()
            {
            return endTime;
            }
    public void setIsDelete(String isDelete)
            {
            this.isDelete = isDelete;
            }

    public String getIsDelete()
            {
            return isDelete;
            }

@Override
public String toString(){
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userCouponId",getUserCouponId())
            .append("couponId",getCouponId())
            .append("userId",getUserId())
            .append("couponTitle",getCouponTitle())
            .append("couponAmount",getCouponAmount())
            .append("couponStatus",getCouponStatus())
            .append("startTime",getStartTime())
            .append("endTime",getEndTime())
            .append("createTime",getCreateTime())
            .append("updateTime",getUpdateTime())
            .append("isDelete",getIsDelete())
        .toString();
        }
        }
